import { Form, Input, Radio } from "antd";

export function InterfaceConf(){
  return (
    <>
      <Form.Item label="发送方式" name="method">
        <Radio.Group buttonStyle="solid">
        <Radio.Button value="get">GET</Radio.Button>
        <Radio.Button value="post">POST</Radio.Button>
        <Radio.Button value="put">PUT</Radio.Button>
        <Radio.Button value="delete">DELETE</Radio.Button>
        <Radio.Button value="patch">PATCH</Radio.Button>
      </Radio.Group>
      </Form.Item>
      <Form.Item label="接口地址" name="url" rules={[{ required: true, message: "接口地址为必填项!" }]}>
        <Input/>
      </Form.Item>
    </>
  )
}